<template>
    <!-- <router-view></router-view> -->
      <div v-if="$route.meta.useFrame != undefined && $route.meta.useFrame==false">
        <!-- 全屏的路由出口 -->
        <router-view></router-view>
    </div>
    <div v-if="$route.meta.useFrame == undefined || $route.meta.useFrame == true">
  <el-container>
    <el-header class="header">
      <el-row class="row-bg" justify="space-between">
        <el-col :span="6" class="logo">
          <!-- <img src="../assets/plus-logo.svg"> -->
          <img src="./assets/logo.jpg">
        </el-col>
        <el-col :span="6">华杉智能多端商城</el-col>
        <el-col :span="6">
          <el-dropdown :hide-on-click="false">
            <span class="el-dropdown-link">
              熊孩子<el-icon class="el-icon--right"><arrow-down /></el-icon>
            </span>
            <template #dropdown>
              <el-dropdown-menu>
                <el-dropdown-item>账户与安全</el-dropdown-item>
                <el-dropdown-item>模板设计</el-dropdown-item>
                <el-dropdown-item>常见问题</el-dropdown-item>
                <el-dropdown-item>关于我们</el-dropdown-item>
                <el-dropdown-item divided>注销</el-dropdown-item>
              </el-dropdown-menu>
            </template>
          </el-dropdown>
        </el-col>
      </el-row>
    </el-header>
    <el-container>
      <el-aside width="190px">
        <Menu></Menu>
      </el-aside>
      <el-main>
        <!-- 右侧内容区 -->
        <!--路由的出口-->
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
  </div>
  <!--路由的出口-->
  <!-- <router-view></router-view> -->
</template>
<script setup lang="ts">
  import Menu from './components/Menu.vue';
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
}

.el-header {
  margin-left: 0;
  margin-right: 0;
}

.el-main {
  padding: 0px;
  margin: 0px;
}

.el-dropdown {
  /* 浮动 */
  float: right;
  padding-top: 14px;
  color: black;
  /* margin-right: -30px; */
}

.header {
  height: 45px;
  background-color: #c6e2ff;

}

.el-row {
  margin: 0;
  padding: 0;
}

.logo img {
  width: 190px;
  height: 45px;
  margin-left: -30px;
  /* margin-top: 2px; */
}

.row-bg {
  margin: 0;
  padding: 0;
}</style>
